﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace MediaPlayer
{
	public partial class PlayerControls : UserControl
	{
        public delegate void OpenFileButtonClickedHendler();
        public delegate void PlayButtonClickedHandler();
        public delegate void PauseButtonClickedHandler();
        public delegate void RewindButtonClickedHandler(object sender, RoutedEventArgs e);
        public delegate void FastForwardButtonClickedHandler(object sender, RoutedEventArgs e);
        public delegate void StopButtonClickedHandler();
        public delegate void FullScreenButtonClickHendler();
        public delegate void OpenStreamButtonClickHendler();
        public event OpenFileButtonClickedHendler OpenFileButtonClicked;
        public event PlayButtonClickedHandler PlayButtonClicked;
        public event PauseButtonClickedHandler PauseButtonClicked;
        public event RewindButtonClickedHandler RewindButtonClicked;
        public event FastForwardButtonClickedHandler FastForwardButtonClicked;
        public event StopButtonClickedHandler StopButtonClicked;
        public event FullScreenButtonClickHendler FullScreenButtonClicked;
        public event OpenStreamButtonClickHendler OpenStreamButtonClicked;



		public PlayerControls()
		{
			this.InitializeComponent(); 
		}
        
        private void fullScreenButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            FullScreenButtonClicked();
        }

        private void openFileButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            OpenFileButtonClicked();
        }

        private void stopButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            StopButtonClicked();
        }

        private void rewindButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            RewindButtonClicked(this, e);
        }

        private void playButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            PlayButtonClicked();
        }

        private void fastForwardButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            FastForwardButtonClicked(this, e);
        }

        private void pauseButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            PauseButtonClicked();
        }

        private void openStreamButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            OpenStreamButtonClicked();
        }
	}
}